//
//  PublicMethods.h
//

#import <Foundation/Foundation.h>
#import "MPTargetConfigMacros.h"
//存储数据
#define DEFAULTS [NSUserDefaults standardUserDefaults]


@interface PublicMethods : NSObject
#pragma mark --- 缓存
+(void)writeToUserD:(id)obj andKey:(NSString *)key;
#pragma mark --- 读取缓存
+(id)readFromUserD:(NSString *)key;
#pragma mark --- 归档
+ (NSData *)archiveObj:(id)obj withKey:(NSString *)key;
#pragma mark --- 读档
+ (id)unArchiveObj:(NSData *)data withKey:(NSString *)key;
#pragma mark --- 判断密码是否包含特殊字符
+ (BOOL)checkPassword:(NSString *)password;
#pragma mark --- 首次加载判断
+(BOOL)Version;

#pragma mark ---传入文件名获取缓存地址
+(NSString *)getDocPath:(NSString *)str;
#pragma mark ---判断手机号
+ (BOOL)checkTelNumber:(NSString*) telNumber;
#pragma mark ---判断邮箱是否合法
+ (BOOL) checkEmail:(NSString *)email;

#pragma mark - 生成当前时间字符串
+(NSString*)GetCurrentTimeString;
#pragma mark - 生成文件路径
+(NSString*)GetPathByFileName:(NSString *)_fileName ofType:(NSString *)_type;
/*
#pragma mark -- SDImage缓存计算
- (double)getCacheSize;
#pragma mark -- SDImage缓存清除
-(void)CacheSDImage;
*/
@end
